// Decompiled by Jad v1.5.8g. Copyright 2001 Pavel Kouznetsov.
// Jad home page: http://www.kpdus.com/jad.html
// Decompiler options: packimports(3) 
// Source File Name:   Shipinfo1.java

package MaintMenu.Shipinfo1;

import java.awt.*;
import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;
import javax.swing.*;

// Referenced classes of package pk1:
//            Tyg_twQuery1, GdQuery1, GnQuery1, DepoQuery1, 
//            Tyg_txQuery1

public class Shipinfo1 extends JFrame
{


    public Shipinfo1()
    {
	super();
        initComponents();
    }

    private void initComponents()
    {
        buttonGroup1 = new ButtonGroup();
        jPanel1 = new JPanel();
        jButton1 = new JButton();
        jLabel1 = new JLabel();
        jLabel2 = new JLabel();
        field1 = new JTextField();
        jLabel3 = new JLabel();
        field2 = new JTextField();
        jLabel4 = new JLabel();
        jLabel5 = new JLabel();
        field3 = new JTextField();
        jRadioButton1 = new JRadioButton();
        jRadioButton2 = new JRadioButton();
        jRadioButton3 = new JRadioButton();
        jRadioButton4 = new JRadioButton();
        jRadioButton5 = new JRadioButton();
        //setDefaultCloseOperation(3);
        setTitle("Container Shipped 1");
        jButton1.setText("Start");
        jButton1.addActionListener(new ActionListener() {

            public void actionPerformed(ActionEvent evt)
            {
                jButton1ActionPerformed(evt);
            }

            final Shipinfo1 this$0;

            
            {
                this$0 = Shipinfo1.this;
                //super();
            }
        }
);
        jLabel1.setFont(new Font("Tahoma", 0, 14));
        jLabel1.setText("Please don't close this window.");
        jLabel2.setFont(new Font("Tahoma", 0, 14));
        jLabel2.setText("PO NO :");
        jLabel3.setFont(new Font("Tahoma", 0, 14));
        jLabel3.setText("CAPA :");
        jLabel4.setFont(new Font("Tahoma", 0, 14));
        jLabel4.setText("(C OR Q)");
        jLabel5.setFont(new Font("Tahoma", 0, 14));
        jLabel5.setText("BO NAME :");
        buttonGroup1.add(jRadioButton1);
        jRadioButton1.setSelected(true);
        jRadioButton1.setText("TYG_TW");
        buttonGroup1.add(jRadioButton2);
        jRadioButton2.setText("GD");
        buttonGroup1.add(jRadioButton3);
        jRadioButton3.setText("GENERA");
        buttonGroup1.add(jRadioButton4);
        jRadioButton4.setText("DEPO");
        buttonGroup1.add(jRadioButton5);
        jRadioButton5.setText("TYG_TX");
        GroupLayout jPanel1Layout = new GroupLayout(jPanel1);
        jPanel1.setLayout(jPanel1Layout);
        jPanel1Layout.setHorizontalGroup(jPanel1Layout.createParallelGroup(GroupLayout.Alignment.LEADING).addGroup(jPanel1Layout.createSequentialGroup().addGroup(jPanel1Layout.createParallelGroup(GroupLayout.Alignment.LEADING).addGroup(jPanel1Layout.createSequentialGroup().addContainerGap().addComponent(jLabel1)).addGroup(jPanel1Layout.createSequentialGroup().addContainerGap().addComponent(jLabel2).addPreferredGap(LayoutStyle.ComponentPlacement.RELATED).addComponent(field1, -2, 90, -2).addGap(18, 18, 18).addComponent(jLabel3).addGap(4, 4, 4).addComponent(field2, -2, 90, -2).addPreferredGap(LayoutStyle.ComponentPlacement.RELATED).addComponent(jLabel4)).addGroup(jPanel1Layout.createSequentialGroup().addGap(166, 166, 166).addComponent(jButton1)).addGroup(jPanel1Layout.createSequentialGroup().addContainerGap().addGroup(jPanel1Layout.createParallelGroup(GroupLayout.Alignment.LEADING).addComponent(jRadioButton1).addGroup(jPanel1Layout.createSequentialGroup().addComponent(jLabel5).addPreferredGap(LayoutStyle.ComponentPlacement.RELATED).addComponent(field3, -2, 90, -2)).addComponent(jRadioButton2).addComponent(jRadioButton3).addComponent(jRadioButton4).addComponent(jRadioButton5)))).addContainerGap(73, 32767)));
        jPanel1Layout.setVerticalGroup(jPanel1Layout.createParallelGroup(GroupLayout.Alignment.LEADING).addGroup(jPanel1Layout.createSequentialGroup().addContainerGap().addComponent(jLabel1).addPreferredGap(LayoutStyle.ComponentPlacement.UNRELATED).addGroup(jPanel1Layout.createParallelGroup(GroupLayout.Alignment.BASELINE).addComponent(jLabel2).addComponent(field1, -2, -1, -2).addComponent(jLabel3).addComponent(field2, -2, -1, -2).addComponent(jLabel4)).addPreferredGap(LayoutStyle.ComponentPlacement.RELATED).addGroup(jPanel1Layout.createParallelGroup(GroupLayout.Alignment.BASELINE).addComponent(jLabel5).addComponent(field3, -2, -1, -2)).addGap(18, 18, 18).addComponent(jRadioButton1).addPreferredGap(LayoutStyle.ComponentPlacement.RELATED).addComponent(jRadioButton2).addPreferredGap(LayoutStyle.ComponentPlacement.RELATED).addComponent(jRadioButton3).addPreferredGap(LayoutStyle.ComponentPlacement.RELATED).addComponent(jRadioButton4).addPreferredGap(LayoutStyle.ComponentPlacement.RELATED).addComponent(jRadioButton5).addPreferredGap(LayoutStyle.ComponentPlacement.RELATED, 26, 32767).addComponent(jButton1).addContainerGap()));
        GroupLayout layout = new GroupLayout(getContentPane());
        getContentPane().setLayout(layout);
        layout.setHorizontalGroup(layout.createParallelGroup(GroupLayout.Alignment.LEADING).addGroup(layout.createSequentialGroup().addContainerGap().addComponent(jPanel1, -1, -1, 32767).addContainerGap()));
        layout.setVerticalGroup(layout.createParallelGroup(GroupLayout.Alignment.LEADING).addGroup(layout.createSequentialGroup().addContainerGap().addComponent(jPanel1, -1, -1, 32767).addContainerGap()));
        pack();
    }

    private void jButton1ActionPerformed(ActionEvent evt)
    {


        String c = field1.getText();
        String d = field2.getText();
        String e = field3.getText();

        Tyg_twQuery1 tyg_twQuery1;
        GdQuery1 gdQuery1;
        GnQuery1 gnQuery1;
        DepoQuery1 depoQuery1;
        Tyg_txQuery1 tyg_txQuery1;

        if(jRadioButton1.isSelected())
            tyg_twQuery1 = new Tyg_twQuery1(c, d, e);
        else
        if(jRadioButton2.isSelected())
            gdQuery1 = new GdQuery1(c, d, e);
        else
        if(jRadioButton3.isSelected())
            gnQuery1 = new GnQuery1(c, d, e);
        else
        if(jRadioButton4.isSelected())
            depoQuery1 = new DepoQuery1(c, d, e);
        else
        if(jRadioButton5.isSelected())
            tyg_txQuery1 = new Tyg_txQuery1(c, d, e);


        JOptionPane.showMessageDialog(this, "Processing is complete");
        int intC = Integer.parseInt(c);
        intC++;
        c = Integer.toString(intC);
        System.out.println(c);
        field1.setText(c);
//        System.exit(0);
    }

//    public static void main(String args[])
//    {
//        EventQueue.invokeLater(new Runnable() {
//
//            public void run()
//            {
//                Shipinfo1 main = new Shipinfo1();
//                main.setVisible(true);
//            }
//
//        }
//);
//    }

    private ButtonGroup buttonGroup1;
    private JTextField field1;
    private JTextField field2;
    private JTextField field3;
    private JButton jButton1;
    private JLabel jLabel1;
    private JLabel jLabel2;
    private JLabel jLabel3;
    private JLabel jLabel4;
    private JLabel jLabel5;
    private JPanel jPanel1;
    private JRadioButton jRadioButton1;
    private JRadioButton jRadioButton2;
    private JRadioButton jRadioButton3;
    private JRadioButton jRadioButton4;
    private JRadioButton jRadioButton5;


}
